package com.zs.admin.validate.wisdbook;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("资源创建参数")
public class WisdbookResourceCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源类型：1富文本  2文档 3图片 4视频  5音频  6题目")
    private Integer type;

    @ApiModelProperty(value = "资源标题")
    private String title;

    @ApiModelProperty(value = "资源内容")
    private String content;

    @NotNull(message = "linkType参数缺失")
    @ApiModelProperty(value = "link类型   0:mark  1:dir")
    private Integer linkType;

    @NotNull(message = "linkId参数缺失")
    @ApiModelProperty(value = "linkId")
    private String linkId;

}
